class ContactInfo {
    nickname = "-"
    photo_url = "http://rzkeji.oss-cn-shenzhen.aliyuncs.com/web/aueco_wxapp/default.png"
    customer_info_str

    static getContactData() {
        let nickname = wx.getStorageSync("nickname")
        let photo_url = wx.getStorageSync("photo_url")

        let merchant = wx.getStorageSync('merchant')
        let customer_info = {
            "custom_fields":{
                "TextField_3080": merchant.merchant_id,
            }
        }
        let customer_info_str = JSON.stringify(customer_info)
        return {
            nickname,
            photo_url,
            customer_info_str
        }
    }

    static toUdeskCart(e) {
        if(e.detail.path){
            wx.navigateTo({
                url: '/pages/udeskCart/index?key='+e.detail.query.key
            })
        }
    }


}

export {
    ContactInfo
}
